//
//  Header.h
//  待定
//
//  Created by BoyaLee on 15/11/4.
//  Copyright © 2015年 BoyaLee. All rights reserved.
//

#ifndef Header_h
#define Header_h

#define WIDTH [[UIScreen mainScreen] bounds].size.width
#define HEIGHT [[UIScreen mainScreen] bounds].size.height
#define SIZE [[UIScreen mainScreen] bounds].size.width * [[UIScreen mainScreen] bounds].size.height / 375 / 667

#ifdef __OBJC__

#import "BaseView.h"
#import "BaseLabel.h"
#import "BaseButton.h"
#import "BaseImageView.h"
#import "BaseTableView.h"
#import "BaseTableViewCell.h"
#import "BaseCollectionView.h"
#import "BaseCollectionViewCell.h"

#import "TBCScrollView.h"
#import "TBCAppTools.h"

#import <AFNetworking.h>
#import <MBProgressHUD.h>
#import <MJRefresh.h>
#import <STKAudioPlayer.h>
#import <STKDataSource.h>
#import <UIImageView+WebCache.h>
#import <Reachability.h>

#endif

#define HEIGHT [[UIScreen mainScreen] bounds].size.height
#define WIDTH [[UIScreen mainScreen] bounds].size.width

#define WIDTHSUIT ([UIScreen mainScreen].bounds.size.width/375.00)
#define HEIGHTSUIT ([UIScreen mainScreen].bounds.size.height/667.00)

#define TEXTDAYMODEL [UIColor blackColor];
#define TEXTNIGHTMODEL [UIColor whiteColor];

#define BGDAYMODEL [UIColor whiteColor];
#define BGNIGHTMODEL [UIColor colorWithRed:135 / 255.0 green:135 / 255.0 blue:135 / 255.0 alpha:1.0];

#if DEBUG

#define NSLog(FORMAT, ...) fprintf(stderr,"[%s:%d行] %s\n",[[[NSString stringWithUTF8String:__FILE__] lastPathComponent] UTF8String], __LINE__, [[NSString stringWithFormat:FORMAT, ##__VA_ARGS__] UTF8String]);

#else

#define NSLog(FORMAT, ...) nil

#endif

//判断当前系统版本和手机类型
#define iOS8 ([[[UIDevice currentDevice] systemVersion] floatValue] >= 8.0f) ? YES : NO

#endif /* Header_h */
